package com.example.hehecat.yuejian1.mvp.model;

import com.example.hehecat.yuejian1.http.RetrofitHttp;
import com.example.hehecat.yuejian1.mvp.contract.RegisterContract;
import com.example.hehecat.yuejian1.mvp.model.bean.UserBean;

import okhttp3.OkHttpClient;
import retrofit2.Callback;

public class RegisterModel implements RegisterContract.Model {
    @Override
    public void register(String username, String password, String address, String phone, Callback<UserBean> callback) {
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        RetrofitHttp.getRetrofit(builder).register(username ,password, address, phone)
                .enqueue(callback);
    }


}
